﻿@namespace Xms.Abp.Components

@inherits AntDomComponentBase

<div style="padding: 15px;">
    @if (Breadcrumb != null)
    {
        <div style="@Style" class="ant-pro-page-container @Class">
            <div class="@_prefixedClassName-warp" style="background-color:transparent;">
                <Breadcrumb>
                    @Breadcrumb
                </Breadcrumb>
            </div>
        </div>
    }
    @if (SearchPanel != null)
    {
        <div style="@(SearchPanel != null ? "margin-top:15px;" : "") @Style" class="ant-pro-page-container ant-pro-page-container-search-panel @Class">
            <div class="@_prefixedClassName-warp">
                @SearchPanel
            </div>
        </div>
    }
    <PageContainer
        Extra="@Extra"
        ExtraContent="@ExtraContent"
        Title="@(!string.IsNullOrWhiteSpace(Title) ? ("┃ " + Title) : null)"
        TabList="@TabList"
        TabActiveKey="@TabActiveKey"
        OnTabChange="@OnTabChange"
        ChildContent="@ChildContent"
        Class="@Class"
        Style="@((Breadcrumb != null || SearchPanel != null ? "margin-top:15px; " : "") + Style)"
        RefBack="@RefBack">
        <Content>
            @if (!string.IsNullOrWhiteSpace(Title))
            {
                <Divider Style="margin:0 -24px 24px -24px;width:calc(100% + 48px);" />
            }
            @if (Content != null)
            {
                @Content
            }
        </Content>
    </PageContainer>
</div>
